<template>
	<!-- 这个是Seafile的收藏 -->
	<!-- 
	https://tool.lu/pansou/index.html?q=%E7%94%B5%E5%BD%B1&page=2
	 这个是盘搜搜的功能
	 -->
	<div>
		
		<Table :columns="columns1" :data="list"></Table>
	</div>
</template>

<script>
	import axios from "axios"
	export default {
		data () {
		    return {
		        columns1: [
		            {
		                title: '名字',
		                key: 'obj_name'
		            },
		            {
		                title: '资料库',
		                key: 'repo_name'
		            },
		            {
		                title: '更新日期',
		                key: 'mtime'
		            }
		        ],
		        list: []
		    }
		},
		mounted() {
			// 获取共享列表
			var Token = window.localStorage.getItem("Token")
			axios({
				url: "https://cloud.seafile.com/api/v2.1/starred-items/",
				method: "get",
				headers: {
					Authorization: "Token " + Token,
					Accept: " application/json; indent=4"
				}
			}).then((res) => {
				console.log(res)
				this.list = res.data.starred_item_list
			})
		}
	}
</script>

<style>
</style>
